/*
//
//              INTEL CORPORATION PROPRIETARY INFORMATION
//  This software is supplied under the terms of a license  agreement or
//  nondisclosure agreement with Intel Corporation and may not be copied
//  or disclosed except in  accordance  with the terms of that agreement.
//    Copyright (c) 2007-2008 Intel Corporation. All Rights Reserved.
//
//
*/

#include "umc_defs.h"
#if defined(UMC_ENABLE_AVS_VIDEO_DECODER) || \
    defined(UMC_ENABLE_AVS_VIDEO_ENCODER)

#include "umc_avs_processing_unit.h"

namespace UMC
{

AVSProcessingUnit::AVSProcessingUnit(void)
{

} // AVSProcessingUnit::AVSProcessingUnit(void)

AVSProcessingUnit::~AVSProcessingUnit(void)
{

} // AVSProcessingUnit::~AVSProcessingUnit(void)

Status AVSProcessingUnit::HandleError(void)
{
    // actually, in most cases error handling is not required

    return UMC_ERR_NOT_ENOUGH_DATA;

} // Status AVSProcessingUnit::HandleError(void)

Status AVSProcessingUnit::Init(Mutex *pGuard)
{
    if (NULL == pGuard)
        return UMC_ERR_NULL_PTR;

    m_pGuard = pGuard;

    return UMC_OK;

} // Status AVSProcessingUnit::Init(Mutex *pGuard)

Status AVSProcessingUnit::Init(Mutex *pGuard, BaseCodecParams* /* pParams */)
{
    if (NULL == pGuard)
        return UMC_ERR_NULL_PTR;

    m_pGuard = pGuard;

    return UMC_OK;

} // Status AVSProcessingUnit::Init(Mutex *pGuard, BaseCodecParams *pParams)


} // namespace UMC

#endif // defined(UMC_ENABLE_AVS_VIDEO_DECODER) ||
